"use strict";
//object能存储的类型【非原始类型】
let aaa;
aaa = { name: "zf" };
aaa = function () { };
aaa = [1, 2, 3];
aaa = new String("zf");
class Person {
}
aaa = new Person();
//以下代码，下面的【原始类型】会有警告
aaa = 1;
aaa = true;
aaa = "zf";
aaa = null;
aaa = undefined;
let bb;
bb = { name: "zf" };
bb = function () { };
bb = [1, 2, 3];
bb = new String("zf");
class Personc {
}
bb = new Personc();
bb = 1;
bb = true;
bb = "zf";
bb = null; //报错
bb = undefined; //报错
bb = Symbol("zf"); //Symbol原始类型唯一值，常用在库与第三方，防止与用户自定义的属性冲突
